<?php

/**
 * @Author: saipu
 * @Date:   2018-07-17 13:01:39
 * @Last Modified by:   saipu
 * @Last Modified time: 2018-07-17 13:42:22
 */
namespace App\Contant;

class CommonType{
	const COURSE  = '学院课程';
	const ARTICLE = '专题文章';
	const CIRCLE  = '圈子';
	const INDEX   = '广场';

	public static function trans($type){
		switch ($type) {
			case 'COURSE':
				return '学院课程';
			case 'ARTICLE':
				return '专题文章';
			case 'CIRCLE':
				return '圈子';
			case 'INDEX':
				return '广场';			
			default:
				# code...
				break;
		}
	}
}